
package com.suarte.webapp.action;

import java.io.Serializable;
import java.util.List;
import org.appfuse.service.GenericManager;

/**
 * @date   Dec 20, 2010
 * @author Ggutierrez
 */
public class CurrencyList extends BasePage implements Serializable {
    private GenericManager currencyManager;

    public void setCurrencyManager(GenericManager currencyManager) {
        this.currencyManager = currencyManager;
    }

    public CurrencyList() {
        setSortColumn("id"); // sets the default sort column
    }

    public List getCurrencies() {
        return sort(currencyManager.getAll());
    }
}
